package com.qyhl.webtv.module_microvideo.shortvideo.theme.detail;


import com.qyhl.webtv.commonlib.entity.microvideo.ShortVideoBean;
import com.qyhl.webtv.commonlib.entity.microvideo.ShortVideoThemeBean;

import java.util.List;

public class ShortVideoThemeDetailPresenter implements ShortVideoThemeDetailContract.ShortVideoThemeDetailPresenter {
    private ShortVideoThemeDetailContract.ShortVideoThemeDetailView mView;
    private ShortVideoThemeDetailModel mModel;

    public ShortVideoThemeDetailPresenter(ShortVideoThemeDetailContract.ShortVideoThemeDetailView mView) {
        this.mView = mView;
        this.mModel = new ShortVideoThemeDetailModel(this);
    }

    @Override
    public void getDetail(String tagId) {
        mModel.getDetail(tagId);
    }

    @Override
    public void getVideoList(String tagId, String page,boolean isAll) {
        mModel.getVideoList(tagId, page,isAll);
    }

    @Override
    public void setDetail(ShortVideoThemeBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setDetailError(String msg) {
        mView.setDetailError(msg);
    }

    @Override
    public void setVideoList(List<ShortVideoBean> beanList, boolean isMore) {
        mView.setVideoList(beanList, isMore);
    }

    @Override
    public void setListError(String msg, boolean isMore) {
        mView.setListError(msg, isMore);
    }
}
